//
//  WeddingCarDetailServiceCell.m
//  BaseProject
//
//  Created by 王洋 on 2021/5/13.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "WeddingCarDetailServiceCell.h"

@implementation WeddingCarDetailServiceCell

+ (CGFloat)calculateHeight {
    return 47;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillHeaderWithModel:(PackageDetailModule *)model {
    
    self.wyxIcon1.hidden = YES;
    self.wyxLab1.hidden = YES;
    self.wyxIcon2.hidden = YES;
    self.wyxLab2.hidden = YES;
    self.wyxIcon3.hidden = YES;
    self.wyxLab3.hidden = YES;
    if (model.sellerModel.examStatus == 2) {
        self.wuyouxuanControl.hidden = NO;

        for (int i = 0; i < model.sysWorryFreeLabel.count; i++) {
            if (i == 0) {
                self.wyxIcon1.hidden = NO;
                self.wyxLab1.hidden = NO;
                self.wyxLab1.text = model.sysWorryFreeLabel[i].labelName;
            }
            if (i == 1) {
                self.wyxIcon2.hidden = NO;
                self.wyxLab2.hidden = NO;
                self.wyxLab2.text = model.sysWorryFreeLabel[i].labelName;
            }
            if (i == 2) {
                self.wyxIcon3.hidden = NO;
                self.wyxLab3.hidden = NO;
                self.wyxLab3.text = model.sysWorryFreeLabel[i].labelName;
            }
        }

    } else {
        self.wuyouxuanControl.hidden = YES;
    }
    
}



@end
